#coding: utf-8
import os
os.environ['DJANGO_SETTINGS_MODULE']='settings'

from building.models import BuildingPrice

print BuildingPrice.objects.all().order_by('-date_format(postDate,"%%Y%%m")')
